import { reactive, getCurrentInstance, ref, onMounted } from "vue";

import {
    GetGoodsTagList, // 标签
} from "@/api/goodsManage/goodsLabel.js"

import {
    GetGoodsTypeList, // 分类
} from "@/api/goodsManage/goodsType.js"

import {
    GetWareHouseList
} from "@/api/warehouseList/index.js"

export const getTypeData = () => {
    const returnData = async () => {
        let data = await GetGoodsTypeList({pageNum:1,pageSize:999});
        return {
            data:data.rows
        };
    };
    return {
        returnData,
    };
};

export const getLabelData = () => {
    const returnData = async () => {
        let data = await GetGoodsTagList({pageNum:1,pageSize:999});
        return {
            data:data.rows
        };
    };
    return {
        returnData,
    };
};

export const getWarehouseData = () => {
    const returnData = async () => {
        let data = await GetWareHouseList({pageNum:1,pageSize:999});
        return {
            data:data.rows
        };
    };
    return {
        returnData,
    };
};
